package com.ruoyi.gaokao.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.gaokao.mapper.GkForeignLanguageMapper;
import com.ruoyi.gaokao.domain.GkForeignLanguage;
import com.ruoyi.gaokao.service.IGkForeignLanguageService;

/**
 * 外语考试语种Service业务层处理
 * 
 * @author xiaosong
 * @date 2025-07-07
 */
@Service
public class GkForeignLanguageServiceImpl implements IGkForeignLanguageService 
{
    @Autowired
    private GkForeignLanguageMapper gkForeignLanguageMapper;

    /**
     * 查询外语考试语种
     * 
     * @param id 外语考试语种主键
     * @return 外语考试语种
     */
    @Override
    public GkForeignLanguage selectGkForeignLanguageById(Long id)
    {
        return gkForeignLanguageMapper.selectGkForeignLanguageById(id);
    }

    // 查询全部数据selectGkForeignLanguageAll
    @Override
    public List<GkForeignLanguage> selectGkForeignLanguageAll()
    {
        return gkForeignLanguageMapper.selectGkForeignLanguageAll();
    }


    /**
     * 查询外语考试语种列表
     * 
     * @param gkForeignLanguage 外语考试语种
     * @return 外语考试语种
     */
    @Override
    public List<GkForeignLanguage> selectGkForeignLanguageList(GkForeignLanguage gkForeignLanguage)
    {
        return gkForeignLanguageMapper.selectGkForeignLanguageList(gkForeignLanguage);
    }

    /**
     * 新增外语考试语种
     * 
     * @param gkForeignLanguage 外语考试语种
     * @return 结果
     */
    @Override
    public int insertGkForeignLanguage(GkForeignLanguage gkForeignLanguage)
    {
        return gkForeignLanguageMapper.insertGkForeignLanguage(gkForeignLanguage);
    }

    /**
     * 修改外语考试语种
     * 
     * @param gkForeignLanguage 外语考试语种
     * @return 结果
     */
    @Override
    public int updateGkForeignLanguage(GkForeignLanguage gkForeignLanguage)
    {
        return gkForeignLanguageMapper.updateGkForeignLanguage(gkForeignLanguage);
    }

    /**
     * 批量删除外语考试语种
     * 
     * @param ids 需要删除的外语考试语种主键
     * @return 结果
     */
    @Override
    public int deleteGkForeignLanguageByIds(Long[] ids)
    {
        return gkForeignLanguageMapper.deleteGkForeignLanguageByIds(ids);
    }

    /**
     * 删除外语考试语种信息
     * 
     * @param id 外语考试语种主键
     * @return 结果
     */
    @Override
    public int deleteGkForeignLanguageById(Long id)
    {
        return gkForeignLanguageMapper.deleteGkForeignLanguageById(id);
    }
}
